#!/usr/bin/env python
# -*- coding: UTF-8 -*-
import sys
import os
import gobject
from pysqlite2 import dbapi2 as sqlite

class DBManager:
	def __init__(self):
		self.connection = sqlite.connect('basedades.db')
		self.cursor = self.connection.cursor()

	def query(self,query_text):
		self.cursor.execute(query_text)
		res = self.cursor.fetchall()
		self.connection.commit()
		return res
